package com.ruoyi.system.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 信息发布对象 message
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标题id，主键 */
    private Long mesId;

    /** 发布内容 */
    @Excel(name = "发布内容")
    private String mes;

    /** 发布人 */
    @Excel(name = "发布人")
    private String mesName;
//    发布标题
    @Excel(name = "发布标题")
    private String mesTitle;
    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mesTime;

    /** 上下架状态0上架，1下架 */
    @Excel(name = "上下架状态0上架，1下架")
    private Long mesState;

    /** 发布图片 */
    @Excel(name = "发布图片")
    private String mesImg;

    /** 审核状态，0审核通过，1审核不通过，2待审核 */
    @Excel(name = "审核状态，0审核通过，1审核不通过，2待审核")
    private Long mesAudit;


    public String getMesTitle() {
        return mesTitle;
    }

    public void setMesTitle(String mesTitle) {
        this.mesTitle = mesTitle;
    }

    /** 审核说明 */
    @Excel(name = "审核说明")
    private String auditIllustrate;

    public void setMesId(Long mesId)
    {
        this.mesId = mesId;
    }

    public Long getMesId()
    {
        return mesId;
    }
    public void setMes(String mes)
    {
        this.mes = mes;
    }

    public String getMes()
    {
        return mes;
    }
    public void setMesName(String mesName)
    {
        this.mesName = mesName;
    }

    public String getMesName()
    {
        return mesName;
    }
    public void setMesTime(Date mesTime)
    {
        this.mesTime = mesTime;
    }

    public Date getMesTime()
    {
        return mesTime;
    }
    public void setMesState(Long mesState)
    {
        this.mesState = mesState;
    }

    public Long getMesState()
    {
        return mesState;
    }
    public void setMesImg(String mesImg)
    {
        this.mesImg = mesImg;
    }

    public String getMesImg()
    {
        return mesImg;
    }
    public void setMesAudit(Long mesAudit)
    {
        this.mesAudit = mesAudit;
    }

    public Long getMesAudit()
    {
        return mesAudit;
    }
    public void setAuditIllustrate(String auditIllustrate)
    {
        this.auditIllustrate = auditIllustrate;
    }

    public String getAuditIllustrate()
    {
        return auditIllustrate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mesId", getMesId())
            .append("mes", getMes())
            .append("mesName", getMesName())
            .append("mesTime", getMesTime())
            .append("mesState", getMesState())
            .append("mesImg", getMesImg())
            .append("mesAudit", getMesAudit())
            .append("auditIllustrate", getAuditIllustrate())
            .toString();
    }
}
